//
//  DocumentDetailViewModel.h
//  EnvironmentalProtection
//
//  Created by HCreater on 2019/1/24.
//  Copyright © 2019年 HCreater. All rights reserved.
//

#import "SUViewModel2.h"

#import "ArticleInfoData.h"

@interface DocumentDetailViewModel : SUViewModel2

@property (nonatomic, copy) NSString* articleID;

@property (nonatomic, readwrite, assign) BOOL isCollect;
@property (nonatomic, readonly, copy) NSString* title;
@property (nonatomic, readonly, copy) NSString* avatarImg;
@property (nonatomic, readonly, copy) NSString* name;
@property (nonatomic, readonly, copy) NSString* downloadFilePath;
@property (nonatomic, readonly, strong) ArticleInfoData* data;

@property (nonatomic, readwrite, assign) NSInteger downloadNeedCoin;

@property (nonatomic, readonly, strong) RACCommand* reqDetailCmd;
@property (nonatomic, readonly, strong) RACCommand* checkDownloadCmd;
@property (nonatomic, readonly, strong) RACCommand* downloadCmd;
@property (nonatomic, readonly, strong) RACCommand* requestCollectCmd;

@end
